from fastapi import FastAPI
from starlette.middleware.cors import CORSMiddleware
import aps as aps


app = FastAPI()
app.include_router(aps.router, prefix='/jssp', tags=['/scheduling'])

origins = ['*']
app.add_middleware(CORSMiddleware, allow_origins=origins, allow_credentials=True, allow_methods=["*"], allow_headers=["*"],)

if __name__ == '__main__':
    import uvicorn
    uvicorn.run(app, host="0.0.0.0", port=9766)




